from playwright.sync_api import sync_playwright
import time


with sync_playwright() as p:
    browser = p.firefox.launch(headless=False)
    context = browser.new_context()
    page = context.new_page()

    page.goto("http://www.baidu.com")
    time.sleep(10)


with sync_playwright() as p:
    browser = p.webkit.launch(headless=False)
    context = browser.new_context()
    page = context.new_page()

    page.goto("http://www.baidu.com")
    # time.sleep(10)